package cn.qingyun.gis.modules.scenes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LHJ
 * @description
 * @date 2024/8/16 18:25
 */
@Data
@TableName("region_addr")
public class RegionAddr {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String geometry;
    private Integer level;
    private String name;
    private String code;
    private String parentCode;
    //中心点经度
    private BigDecimal lon;
    //中心点纬度
    private BigDecimal lat;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
